package com.cheyun.netsalev3.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import com.cheyun.netsalev3.bean.Search

@Dao
interface SearchDao {
    @Query("SELECT * FROM search order by id desc")
    fun getSearchList(): LiveData<List<Search>>


    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(item: Search)

    @Query("DELETE FROM search")
    fun deleteTabe()

}